﻿namespace Devonline.AspNetCore;

/// <summary>
/// SMTP 邮件设置
/// </summary>
public class SmtpMailSetting
{
    public SmtpMailSetting()
    {
        Port = 25;
        UseCredentials = true;
    }

    /// <summary>
    /// 邮件服务器地址
    /// </summary>
    public string? Host { get; set; }
    /// <summary>
    /// 邮件服务器端口号
    /// </summary>
    public int Port { get; set; }
    /// <summary>
    /// 发件人/发件地址
    /// </summary>
    public string? From { get; set; }
    /// <summary>
    /// 是否需要认证
    /// </summary>
    public bool UseCredentials { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string? UserName { get; set; }
    /// <summary>
    /// 密码
    /// </summary>
    public string? Password { get; set; }
}